package com.shangma.cn.mapper;

import com.shangma.cn.entity.base.impl.Admin;
import com.shangma.cn.entity.base.impl.Brand;
import com.shangma.cn.mapper.base.MyMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

/**
 * 开发人员: 辉哥真球帅
 * 联系方式: zhengzhoudaxuevip@163.com
 * 创建时间: 2021/10/7  16:42
 * 文件含义:
 */
public interface AdminMapper extends MyMapper<Admin> {



    @Select("select count(1) from sys_admin where id !=#{id} and (account_name=#{accountName} or admin_email=#{adminEmail} or admin_phone=#{adminPhone} or card_code=#{cardCode})")
    public int isMZUpdate(Admin admin);

}
